package com.leyou.item.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * category和brand中间表的实体类
 */
@Data
@AllArgsConstructor(staticName = "of") //声明一个名为of的全参构造函数
@TableName("tb_category_brand")
public class CategoryBrand {
    @TableId(type = IdType.INPUT) //主键生成策略
    private Long categoryId;
    @TableId(type = IdType.INPUT)
    private Long brandId;
}
